package com.lujieni.controller;

import org.example.util.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @Title: UseController
 * @Description:
 * @date 2023/11/7 09:54
 */
@RestController
public class UseController {

    @Autowired
    private RedisUtil redisUtil;
    @GetMapping("/set")
    public String setValue(String value){
        redisUtil.set("name", value);
        return "ok";
    }
}
